package arrayListDemo;

import java.util.ArrayList;

public class Demo1 {
	public static void main(String[] args){
		StringBuilder strbuf=new StringBuilder();
		strbuf.append("aaa");
		strbuf.append("bbb");
		strbuf.append("ccc");
		strbuf.insert(6, "ddd");
		System.out.println(strbuf);
		
		ArrayList arrayList = new ArrayList();
		arrayList.add("aa");
		arrayList.add("ddd");
		arrayList.add("fff");
		arrayList.add(2,"kkk");
		System.out.println(arrayList);
	}
}
